<template>
  <div class="banxin">
    <div class="left">
      <img class="left_item" :src="titleimg" alt="">
      <h2>{{title1}}</h2>
    </div>
    <div class="right" :style="{display: title1==='积分攻略'?'none':'flex'}">
      <span @click="gotoGoodsFn">更多</span>
      <img src="../../assets/images/home/Arrow.png" alt="">
    </div>
  </div>
</template>

<script>
export default {
  methods:{
    gotoGoodsFn(){
      this.$router.push('/goods')
    }
  },
props:{
  title1:{
    type:String
  },
  titleimg:''
}
}
</script>

<style lang="less" scoped>
@import "../../totao.css";
.banxin{
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 106px;
  .left{
    display: flex;
    align-items: center;
    .left_item{
      margin-right: 8px;
    }
    h2{
      font-size: 30px;
      font-weight: bold;
      color: #242b39;
    }
  }
  .right{
    display: flex;
    align-items: center;
    span{
      margin-right: 8px;
      font-weight: 300;
      color: #666666;
      cursor: pointer;
    }
  }
}
</style>